package com.sinping.qh.domain.auth;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;

/**
 * <p>
 * 
 * </p>
 *
 * @author 刘庆沛
 * @since 2017-12-22
 */
public class Token extends Model<Token> {

    private static final long serialVersionUID = 1L;

	private String id;
	@TableField("user_id")
	private String userId;
	private String token;
	@TableField("user_name")
	private String userName;
	@TableField("nickname")
	private String nickName;
	private String ip;
	private Integer device;
	private String version;
//	@TableField("pass_login_times")
//	private Integer passLoginTimes;
	@TableField("token_login_times")
	private Integer tokenLoginTimes;
	@TableField("create_time")
	private Date createTime;
	@TableField("update_time")
	private Date updateTime;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Integer getDevice() {
		return device;
	}

	public void setDevice(Integer device) {
		this.device = device;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

//	public Integer getPassLoginTimes() {
//		return passLoginTimes;
//	}
//
//	public void setPassLoginTimes(Integer passLoginTimes) {
//		this.passLoginTimes = passLoginTimes;
//	}

	public Integer getTokenLoginTimes() {
		return tokenLoginTimes;
	}

	public void setTokenLoginTimes(Integer tokenLoginTimes) {
		this.tokenLoginTimes = tokenLoginTimes;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}


}
